:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 100%;
  min-height: 100%;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

.card {
  padding: 2em;
}

#app {
  width: 100%;
  height: 100%;
  text-align: center;
  margin: 20;
  padding: 10;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}

/* 移动端适配样式 */
@media screen and (max-width: 768px) {
  /* 通用移动端样式 */
  * {
    box-sizing: border-box;
  }
  
  /* 调整字体大小 */
  body {
    font-size: 14px;
    line-height: 1.4;
  }
  
  /* 调整标题大小 */
  h1 { font-size: 20px; }
  h2 { font-size: 18px; }
  h3 { font-size: 16px; }
  
  /* 调整按钮大小 */
  .el-button {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  /* 调整卡片间距 */
  .el-card {
    margin-bottom: 10px;
  }
  
  /* 调整表格显示 */
  .el-table {
    font-size: 12px;
  }
  
  .el-table th,
  .el-table td {
    padding: 8px 4px;
  }
  
  /* 调整表单布局 */
  .el-form-item {
    margin-bottom: 15px;
  }
  
  .el-form-item__label {
    font-size: 14px;
    line-height: 1.2;
  }
  
  /* 调整输入框 */
  .el-input__inner {
    font-size: 14px;
    height: 36px;
  }
  
  /* 调整选择器 */
  .el-select {
    width: 100%;
  }
  
  /* 调整对话框 */
  .el-dialog {
    width: 95% !important;
    margin: 5vh auto !important;
  }
  
  /* 调整分页器 */
  .el-pagination {
    text-align: center;
    margin-top: 15px;
  }
  
  .el-pagination .el-pager li {
    min-width: 32px;
    height: 32px;
    line-height: 32px;
  }
}

/* 超小屏幕适配 */
@media screen and (max-width: 480px) {
  /* 进一步缩小字体 */
  body {
    font-size: 13px;
  }
  
  /* 调整按钮组 */
  .el-button-group .el-button {
    padding: 6px 8px;
    font-size: 12px;
  }
  
  /* 调整表格为卡片布局 */
  .mobile-table-card {
    display: block;
  }
  
  .mobile-table-card .el-table {
    display: none;
  }
  
  .mobile-table-card .mobile-card-list {
    display: block;
  }
  
  .mobile-card-item {
    background: #fff;
    border: 1px solid #ebeef5;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 10px;
  }
  
  .mobile-card-item .item-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
  }
  
  .mobile-card-item .item-label {
    font-weight: 500;
    color: #606266;
    min-width: 80px;
  }
  
  .mobile-card-item .item-value {
    flex: 1;
    text-align: right;
  }
  
  /* 调整搜索区域 */
  .search-section {
    flex-direction: column;
    gap: 10px;
  }
  
  .search-input {
    max-width: 100%;
  }
  
  /* 调整概览卡片 */
  .overview-section .el-col {
    margin-bottom: 10px;
  }
  
  .overview-item {
    gap: 10px;
  }
  
  .overview-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .overview-number {
    font-size: 20px;
  }
  
  .overview-label {
    font-size: 12px;
  }
}

/* 横屏适配 */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .el-dialog {
    width: 80% !important;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .overview-section .el-col {
    width: 50%;
  }
}

/* 触摸优化 */
@media (hover: none) and (pointer: coarse) {
  /* 增大触摸目标 */
  .el-button {
    min-height: 44px;
  }
  
  .el-input__inner {
    min-height: 44px;
  }
  
  .el-select .el-input__inner {
    min-height: 44px;
  }
  
  /* 调整表格行高 */
  .el-table td {
    padding: 12px 4px;
  }
}
